// 订单列表参数
export interface OrderListParams {
  searchType?: string
  search?: string
  state?: string
  dates?: string[]
  page: number
  shopName?: string
  pageSize: number
}

// 订单详情参数
export interface OrderDetailParams {
  orderId: string
}

// 订单发货参数
export interface OrderDeliveryParams {
  orderId: string
  express: string
  deliverFormid: string
}

// 导出订单参数
export interface OrderExportParams {
  searchType?: string
  search?: string
  state?: string
  dates?: string[]
  page: number
  shopName?: string
  pageSize: number
}

// 订单列表项
export interface OrderListItem {
  orderId: string
  number: number
  shopName: string
  customerName: string
  receiveName: string
  receivePhone: string
  price: number
  createTime: string
  state: number
}

// 订单详情
export interface OrderDetail {
  shopName: string
  orderId: string
  transactionId: string
  state: number
  afterStateName: string
  paymentMode: number
  logisticsName: string
  createTime: string
  paymentTime: string
  remark: string
  orderPrice: number
  logisticsPrice: number
  logisticsNum: string
  total: number
  receiveName: string
  receivePhone: string
  receiveAdress: string
  products: OrderProduct[]
}

// 订单商品
export interface OrderProduct {
  image: string
  productName: string
  skuDetails: SkuDetail[]
  skuId: string
  productPrice: number
  number: number
}

// SKU详情
export interface SkuDetail {
  skuName: string
  skuValue: string
}

// 快递公司
export interface ExpressCompany {
  dictName: string
  dictId: string
}